export function isNull(obj: unknown): boolean {
    if (obj === undefined || obj === null) return true

    if (typeof obj === 'string') {
        return ['null', 'NULL', ''].includes(obj.trim())
    } else if (Array.isArray(obj)) {
        return obj.length === 0
    } else if (obj instanceof Set) {
        return obj.size === 0
    } else if (obj instanceof Map) {
        return obj.size === 0
    }
    return false
}